package com.sedu.manage.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sedu.common.annotation.Excel;
import com.sedu.common.core.domain.BaseEntity;

/**
 * 请假管理对象 leave_request
 *
 * @author yulinfeng
 * @date 2025-03-29
 */
public class LeaveRequest extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 请假记录ID
     */
    private Long leaveId;

    /**
     * 学生
     */
    @Excel(name = "学生ID")
    private Long studentId;

    /**
     * 请假开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "请假开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date startTime;

    /**
     * 请假结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "请假结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date endTime;

    /**
     * 请假原因
     */
    @Excel(name = "请假原因")
    private String reason;

    /**
     * 请假状态
     */
    @Excel(name = "请假状态")
    private Long status;

    public void setLeaveId(Long leaveId) {
        this.leaveId = leaveId;
    }

    public Long getLeaveId() {
        return leaveId;
    }

    public void setStudentId(Long studentId) {
        this.studentId = studentId;
    }

    public Long getStudentId() {
        return studentId;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getReason() {
        return reason;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("leaveId", getLeaveId())
                .append("studentId", getStudentId())
                .append("startTime", getStartTime())
                .append("endTime", getEndTime())
                .append("reason", getReason())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
